<h2>Edit Profile</h2>
<%= error_messages_for :user %>

<%# Unable to use "form_for @user" helper because it looks for the class name (Member) URL not the base name (User) %>
<% form_for :user, :url => user_path(@user), :html => { :method => 'put' } do |f| %>
  <p>
    <label for="user_email">E-mail Address:</label>
    <%= f.text_field :email %>
  </p>
  <% if current_user.admin? %>
  <p>
    <label for="user_kind">Type:</label>
    <%= f.select :kind, User.kinds %>
  </p>
  <% end %>
  <p>
    <label for="user_date_of_birth">Date of Birth:</label><br />
    <%= f.date_select :date_of_birth, :start_year => 1900, :end_year => Time.now.year %>
  </p>
  <p>
    <label for="user_location">Location:</label><br />
    <%= f.text_field :location %>
  </p>
  <p>
    <label for="user_website">Website:</label><br />
    <%= f.text_field :website %>
  </p>
  <p>
    <label for="user_website">Change Password:</label><br />
    <%= f.password_field :password %>
  </p>
  <p>
    <label for="user_website">Confirm Password:</label><br />
    <%= f.password_field :password_confirmation %>
  </p>
  <p>
    <label for="user_signature">Signature:</label><br />
    <%= f.text_area :signature %>
  </p>
  <p>
    <%= submit_tag 'Update' %> <%= cancel_button url_for(:controller => 'forums') %>
  </p>
<% end %>
